package com.yyge.vo;

//将分页查询结果封装到业务逻辑层
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import java.util.List;

@Data
@ApiModel(value = "分页对象",description = "分页对象")
public class PageVo<T> {
    /**
     * 将分页查询结果封装到pageVo对象
     */

     @ApiModelProperty(value = "总条数")
     private  Long total; //总条数

     @ApiModelProperty(value = "数据集合")
     private List<T> rows;

     @ApiModelProperty(value = "当前页数")
     private Integer pageNum;

     @ApiModelProperty(value = "单页数量")
     private Integer pageSize;
}
